Auto merge of #4168 - alexcrichton:more-metadata, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 14 Jun 2017 18:19:17 +0000 (18:19 +0000)
committerbors <bors@rust-lang.org>
Wed, 14 Jun 2017 18:19:17 +0000 (18:19 +0000)
commit801aba12778e78a3e50945364952caf8a4ee847b
tree289594b46b3016132b75ccc7ebd4ab3ad50945be
parentd917378d335219be490aad3f22c196d99c638f28
parent73216cb91b7cd3a33d3121dcb6216d848b00221c
Auto merge of #4168 - alexcrichton:more-metadata, r=alexcrichton

Hash `Kind` in metadata for crates

This fixes what is now a bug in Cargo discovered when attempting to land
rust-lang/rust#42495 where Cargo will compile both host and target artifacts
with the same `-C metadata` flag. This means that the compile can load two
crates with the same SVH that are supposed to be distinct, which causes weird
bugs with crate loading and whatnot.

This commit throws in the `Kind` into the metadata calculation to resolve this
to ensure that host/target artifacts always have a different `-C metadata`